function [cellData] = PrachPeakSeach(cellParams, cellData)
    prachMaxUeNum = cellParams.prach.L3.prachMaxUeNum;

    PDP = cellData.prach.PDP;
    PDPdB = nrDBConvert(PDP);
    [PDPMax, PDPMaxIndex] = max(PDPdB);
    PDPMean = mean(PDPdB);
    PDPDiff = PDPMax-PDPMean;

    PDPDiffMax = max(PDPDiff);

    if PDPDiffMax > cellParams.prach.L1.threshold
        PDPThreshold = max(PDPDiffMax*0.9, cellParams.prach.L1.threshold);
        peakIndex = find(PDPdB > PDPThreshold, prachMaxUeNum);
    else
        peakIndex = 0;
    end

    cellData.prach.peakIndex = peakIndex;
end

